DirectAdmin Forums

ساخت وبلاگ
I just setup a new clean Ubuntu 22.04 VPS with installed DirectAdmin, configured the primary/only domain and published a website. HTML pages of the site work fine, but php pages are downloaded by the browser instead of loaded and executed.DirectAdmin is configured with nginx_apache. I first tried several versions of php-fpm, 8.1 and 8.2 would partially load the php pages of the site, and 8.3 seemed to work fine, the pages fully loaded as expected. However, beyond the main php page, the site utilizes link rewrites to generate "pretty" URLs to sub-pages which are php. I figured out that php-fpm doesn't support .htaccess. I reconfigured PHP to use fastcgi, tried both 8.3 and 7.4 (current server hosting the site is 7.4), but both of those options result in the php pages downloading as files instead of loading/executing. I've enabled htscanner in CustomBuild, ran ./build for php and php_htscanner2, ran rewrite_confs from CLI and CustomBuild, restarted apache and nginx, tried toggling php_ini (current/default = "no") and secure_php (current/default = "yes") options in CustomBuild and so far I'm getting nowhere.I will also need to host WordPress sites on this server, but one step at a time for now.Any help would be greatly appreciated. DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 29 تاريخ : يکشنبه 29 بهمن 1402 ساعت: 4:06

Would there be any advantage/disadvantage to setting up the DA server using this domain, and then giving it the hostname web.acme.com? Best is not to use default names for hostnames, so no mail or www, imap and such, could give troubles later.However, web is not a default name so yes that would be possible. The hostname doesn't really matter, you can also user server, srv1, vps, my or whatever you like.I don't use Cloudflare DNS, but if you would like to switch to your own nameservers later on, then it might be easier to already have the correct domain in use.For example if I would have acme.com and I plan maybe to later on use ns1.acme.com and ns2.acme.com then I would use web.acme.com or server.acme.com as the hostname for example.If you rather use acmehosting.com for your nameservers, then I personally also would use something like server.acmehosting.com for the hostname.Benefit of running own nameservers? For sure.You don't have any fuzz with exteal nameservers, all options can be done via DA. Next to that, no issues with automatic SSL certificates, no need to configure LEGO, this all works automatically.Be aware that some registrars do not accept the same ip for 2 nameservers, so in some cases a secondary ip is required or a cheap vps with for example Directslave running as secondary nameserver. It all depends what you want.The reason for the hierarchie is safety. I wouldn't set every domain under admin unless you're the only customer on the DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 28 تاريخ : يکشنبه 29 بهمن 1402 ساعت: 4:06

Thanks for clarification.

Database size is now retrieved much more efficiently than before, so there is no real performance benefit in not counting it. Option show-db-usage will be eligible for removal in future releases.

Global PhpMyAdmin access is available from the main menu (Extra Features section). It will give you access to all databases. So we decided there is need to duplicate it inside the DB list page.

DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 28 تاريخ : يکشنبه 29 بهمن 1402 ساعت: 4:06

A Wordpress website is not accessible after recently wordpress update 8.x versionThe error :ForbiddenYou don't have permission to access this resource.Root Cause : Comodo rule with ID 218500 is false-positively triggered when Woocommerce 8.x is in us ( depends plugins and version )The lines below can be found in /var/log/[ http or nginx ]/domains > example.com.error.log:22:48:56 [error] 2311512#0: *127470 [client 37.6.255.227] ModSecurity: Access denied with code 403 (phase 2). Matched "Operator `Rx' with parameter `[[]x22',().]{10}$|b(?:unionsallsselects(??:null|d+),?)+|ordersbysd{1,4}|(?:and|or)sd{4}=d{4}|waitforsdelays'd+:d+:d+'|(?:select|and|or)s(??g_)?sleep(d+)|d+s?=s?(?:dbms (436 characters omitted)' against variable `REQUEST_COOKIES:sbjs_first_add' (Value: `fd%3D2024-01-16%2008%3A20%3A34%7C%7C%7Cep%3Dhttps%3A%2F%example.com%2F%7C%7C%7Crf%3D%28none%29' ) [file "/usr/local/cwaf/rules/22_SQL_SQLi.conf"] [line "109"] [id "218500"] [rev "18"] [msg "COMODO WAF: SQLmap attack detected||example.com|F|2"] [data "Matched Data: |||rf=(none) found within REQUEST_COOKIES:sbjs_first_add: fd=2024-01-16 08:20:34|||ep=https:/example.com/|||rf=(none)"] [severity "2"] [ver ""] [maturity "0"] [accuracy "0"] [tag "CWAF"] [tag "SQLi"] [hostname "10.0.0.5"] [uri "/wp-admin/admin-ajax.php"] [unique_id "170543813693.032521"] [ref "v5,24o77,12v1383,163t:urlDecodeUni,t:htmlEntityDecode,t:normalizePath,t:compressWhiteSpace,t:lowercaseo46,12v985,95t:urlDecodeUni,t:ht DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 384 تاريخ : يکشنبه 1 بهمن 1402 ساعت: 18:00

I activated the automatic backup of the host, but it does not run at the scheduled time, what is the reason?
DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 44 تاريخ : يکشنبه 1 بهمن 1402 ساعت: 18:00

Hello,I installed a fresh copy of DA yesterday and today I found that named is not running.Error:Jan 25 15:07:02 server.domain.com bash[9717]: zone server.domain2.com/IN: loading from master file /var/named/server.domain.com.db failed: file not foundJan 25 15:07:02 server.domain.com bash[9717]: zone server.domain2.com/IN: not loaded due to errors.Jan 25 15:07:02 server.domain.com bash[9717]: _default/server.domain2.com/IN: file not foundJan 25 15:07:02 server.domain.com systemd[1]: named.service: control process exited, code=exited status=1Jan 25 15:07:02 server.domain.com systemd[1]: Failed to start Berkeley Inteet Name Domain (DNS).Tried this too: echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue Tried other forum posts but not able to solve it.Please help DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 47 تاريخ : يکشنبه 1 بهمن 1402 ساعت: 18:00

JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding. You are using an out of date browser. It may not display this or other websites correctly.You should upgrade or use an alteative browser. Today at 4:23 AM One effective tool for converting MBOX files to PST format is the vMail MBOX to PST Converter Tool 1. Many of the functions are difficult for users to finish. The extensive capabilities of this program provide a solid data conversion experience while accommodating the various needs of the user. Many email clients, such as Thunderbird, Apple Mail, Eudora, Sea Monkey, and others, are compatible with it. PST files contain multiple emails, contacts, notes, messages, calendars, and other data, while Thunderbird files just contain multiple emails and attachments. Users are therefore required to convert MBOX files into Outlook PST files.Know more info-vsoftware DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 41 تاريخ : يکشنبه 24 دی 1402 ساعت: 21:03

/usr/local/directadmin/data/users/accountname/user.conf if the option SSL=ON is on already.Cannot Execute Your RequestSSL is not enabled for this domainanother site ssl is ok , just one site have this problem in this server. Last edited: Yesterday at 8:02 PM DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 43 تاريخ : يکشنبه 24 دی 1402 ساعت: 21:03

you can't do this. there will be mysql8 or mariadb 10.6 by default, not sure you can install lower than mysql 5.7 and maria 10.4.
you can try convert mysql DB on any other server with needed version. But in my practice - websites on PHP 5.2 works fine on new versions. but better test it - try any shared hosting with DA and new versions, add IP of new hosting to hosts-file and test how website will work without touching working version.

DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 45 تاريخ : يکشنبه 24 دی 1402 ساعت: 21:03

#!/bin/sh
if [ $1 ]; then
echo "`exim -bpru | tr 'n' + | sed -e "s/++/=/g" | tr -d + | tr = 'n' | grep "$1" | awk {'print $3'} | xargs exim -Mrm | wc -l` E-Mails deleted"
else
echo "If you want to delete ALL the `exim -bpc` E-Mails on mail queue, give this command:"
echo "exim -bp|grep "<"|awk {'print $3'}|xargs exim -Mrm"
echo "or even better"
echo "exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash"
echo ""
echo "If you want to delete only mails with an specific sender/recipient, use:"
echo "$0 [sender/recipient]"
fi

DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 35 تاريخ : يکشنبه 17 دی 1402 ساعت: 0:53

Oh lucky I went to sleep a lot later.Oke first screenshot, very correct. You also will see that the namservers are still ns1.primarydomain.com and ns2.primarydomain.com if not this is correct anyway. And then in Server Manager -> DNS Administration I currently have these 2 records: Delete both. In Directadmin you don't set the rDNS/PTR, so you can loose the in-addr.arpa records.The second is your www hostname, this is wrong so can also be deleted.I'ts written in my manual to do it in DNS Administration. Not a DNS record, a complete DNS entry as if you would create a new domain. But not under a user account also not as admin in user level. 1. I don't need to create a new DNS record on the server for server.primarydomain.com ? YES. In DNS Adminstration as admin in admin level. So there you enter server.primarydomain.com as new domain and your server ipv4 and then ns1.primarydomain.com and ns2.primarydomain.com and save.Then you will have kind of the same as you now have for the same www record (which you will delete).Then don't forget to via SSH in /etc/virtual create the server.primarydomain.com directory and chown it to mail:mail. 2. I assume this [backwards ip address].in-addr.arpa record is my Reverse DNS record. Officially they are reverse dns records. But they won't work if you create them in Directadmin in this case, you need to set the ptr/rdns record at your server provider. So remove all DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 29 تاريخ : يکشنبه 17 دی 1402 ساعت: 0:53

JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding. You are using an out of date browser. It may not display this or other websites correctly.You should upgrade or use an alteative browser. Today at 10:24 AM Well that..... I made a mistake.. I erase some Skin files by error .......How do I re-download the skin?Google doesn't know neither... "Download again a damaged skin site:forum.directadmin.com" DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 30 تاريخ : يکشنبه 17 دی 1402 ساعت: 0:53

Are you a Directadmin license holderBecause this is a forum for support to Directadmin license holders, so admins and sometimes resellers, but not for end customers using Directadmin.You should ask support at your current system admin who is admin of the Directadmin installation, it should be no problem at all for him to help you with this.Just to be of a bit of help (there are lots of movement instructions for Wordpress to be found on inteet), if your new server will have Directadmin too, use the admin backup/transfer if you're an admin.If you're a hosting customer, you can just use the backup option from DA in your user account and let your new host restore it again.There might be need to change paths in Wordpress.Also have a look here: DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 139 تاريخ : دوشنبه 11 دی 1402 ساعت: 12:15

account=ON additional_bandwidth=0 aftp=OFF api_with_password=yes bandwidth=unlimited catchall=ON cgi=ON clamav=OFF creator=personal cron=OFF date_created=Wed Dec 27 11:53:12 2017 demo=no dnscontrol=ON docsroot=./data/skins/evolution domain=#.org domainptr=0 email=#@#.com ftp=1 git=OFF inode=unlimited ip=# language=en login_keys=OFF mysql=0 name=# nemailf=unlimited nemailml=unlimited nemailr=unlimited nemails=unlimited notify_on_all_question_failures=yes notify_on_all_twostep_auth_failures=yes ns1=ns.#.nl ns2=ns.#.eu nsubdomains=unlimited package=custom php=ON quota=unlimited security_questions=no sentnotice_quota_full=no sentwaing_bandwidth=no sentwaing_inode=no sentwaing_quota=no skin=evolution spam=ON ssh=OFF ssl=ON suspend_at_limit=OFF suspended=no sysinfo=OFF twostep_auth=no user_widgets=WGT_USER_STATS:WGT_ADDITIONAL_DOMAINS useame=# usertype=user vdomains=unlimited wordpress=OFF zoom=100 DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 29 تاريخ : دوشنبه 11 دی 1402 ساعت: 12:15

Hi guys, i'm trying to install ssl for my server hostname, but the server refuse to recognize core.mydomain.com as hostname instead the letsencript show me as hostname the one that is setup when DA is installed server-xx-xx-xx-xx.da.direct. What i'm doing wrong? I already checked my hosts file...

DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 36 تاريخ : دوشنبه 11 دی 1402 ساعت: 12:15

Hi,I tried to install php 7.4 & 8.1 and failed with the same error message :...........checking if iconv is glibc's... yeschecking if iconv supports ero... yeschecking if iconv supports //IGNORE... yeschecking if your cpp allows macro usage in include lines... yeschecking for IMAP support... nochecking for IMAP Kerberos support... yeschecking for IMAP SSL support... nochecking whether to enable inteationalization support... yeschecking for icu-uc >= 50.1 icu-io icu-i18n... noconfigure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:No package 'icu-uc' foundNo package 'icu-io' foundNo package 'icu-i18n' foundConsider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alteatively, you may set the environment variables ICU_CFLAGSand ICU_LIBS to avoid the need to call pkg-config.See the pkg-config man page for more details.*** There was an error while trying to configure php. Check the configure file[root@srv custombuild]#Please keep in mind php 7.3 installed without problem.I tried ( https://forum.directadmin.com/threads/error-build-php-7-4.59632/ ):cd /usr/local/directadmin/custombuild./build update./build update_versions./build php nNo successFailed too :cd /usr/local/directadmin/custombuild./build update./build icuAfter that tried :yum install libicu-devel libicu-docand help to continue to next stepNext error wasNo package 'libzip' foundNo package 'libzip' foundNo package 'libzip' fou DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 64 تاريخ : شنبه 2 دی 1402 ساعت: 22:17

From my understanding, it seems -Q1) DirectAdmin does not compile mod_sftp into ProFTPd by default.Q2) sFTP runs on port 22 by default, am I right?am I right? Last edited: Today at 5:58 AM DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 46 تاريخ : شنبه 2 دی 1402 ساعت: 22:17

Moing Everyone,
I did a DA update last night if I remember correctly and woke up this moing to PHP-FPM 7.4 down, so I did a quick reboot and then all of them went down. The following error is -

[23-Dec-2023 11:49:33] ERROR: Another FPM instance seems to already listen on /usr/local/php81/sockets/webapps.sock
[23-Dec-2023 11:49:33] ERROR: FPM initialization failed
[23-Dec-2023 11:49:38] ERROR: Another FPM instance seems to already listen on /usr/local/php81/sockets/webapps.sock
[23-Dec-2023 11:49:38] ERROR: FPM initialization failed

Does anyone know what would randomly just cause this and how to fix it please?

Thanks

Rockyuk

DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 40 تاريخ : شنبه 2 دی 1402 ساعت: 22:17

Dear All,on a "pass to be migrated" server with centos 6 (i know it's not supported anymore ..) and v 1.643 directadmin, we have blank page (no login/password request showed)after switching to debug mode, nothing special :0: Accept-Encoding: gzip1: Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.72: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.73: Cache-Control: max-age=04: Da-Ipc-Signature: dc04b5543856b93ffd2aa6a9083b5de8f2ce83fe5: Da-Licc-Nresellers: -16: Da-Licc-Nusers: -17: Da-Licc-Vdomains: -18: Host: server1.xyz123.com:22229: Sec-Ch-Ua-Mobile: ?010: Sec-Ch-Ua-Platform: "Windows"11: Sec-Ch-Ua: "Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"12: Sec-Fetch-Dest: document13: Sec-Fetch-Mode: navigate14: Sec-Fetch-Site: none15: Sec-Fetch-User: ?116: Upgrade-Insecure-Requests: 117: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.3618: X-Da-Remote-Ip: 81.251.185.14919: X-Forwarded-For: 81.251.185.149didn't find the encrytped text** incorrect loginSend::sendLogin(): not logged in. json_out=0/assets/login.js/assets/css/login.css0: Accept-Encoding: gzip1: Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.72: Accept: */*3: Da-Ipc-Signature: 5cb9dedb552795117b8db92ae3ea2fd2b8c43d934: Da-Licc-Nresellers: -10: Accept-Encoding: gzip5: Da-Licc-Nusers: -11: Accept-Language: fr-FR,fr;q=0.9,en-US;q=0. DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 122 تاريخ : شنبه 19 فروردين 1402 ساعت: 15:17

As per title. There must be a way to toggle this switch on https://yourdirectadmin.com:2222/user/redis using the command line. I know it has something to do with CMD_REDIS, but I'm stuck on how to execute it programmatically.

Not to be confused with REDIS=ON in the user.conf file. This is already set and enabled in the user packages.

DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال می کنید

برچسب : نویسنده : ایمان اصلاحی directadmin بازدید : 160 تاريخ : شنبه 19 فروردين 1402 ساعت: 15:17